//: C09:Hidden.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// Hidden activities in inlines
#include <iostream>
using namespace std;

class Member
{
    int i, j, k;
public:
    Member(int x = 0) {
        i = j = k = x;
    }
    ~Member() {
        cout << "~Member" << endl;
    }
};

class WithMembers
{
    Member q, r, s; // Have constructors
    int i;
public:
    WithMembers(int ii) : i(ii) {} // Trivial?
    ~WithMembers() {
        cout << "~WithMembers" << endl;
    }
};

int main()
{
    WithMembers wm(1);
} ///:~
